<%@page import="com.mmy.domain.sys.TSysOrg"%>
<%@page import="com.mmy.domain.sys.VSysOrg"%>
<%@page import="com.mmy.domain.constzone.TConstZone"%>
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
 <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%> 
 <%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>  

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<jsp:include page="/WEB-INF/jsp/includeb.jsp"></jsp:include>
<script type="text/javascript" src="js/jsp/back/org/orgIndex.js"></script>
		<title>旅行社信息</title>
	</head>
	<body>
		<div id="off-canvas-container" class="off-canvas-container">
		<jsp:include page="/WEB-INF/jsp/BackHeader.jsp"></jsp:include>
		<div id="menu-back">
		<!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
		<!-- Main Start -->
		<!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
		<main class="at-padding-large-bottom">
			<article>
				<header class="bg-light at-padding-large-top at-padding-large-bottom at-margin-large-bottom">
					<div class="page-header container">
						<div class="row">
							<div class="span-5 col">
								<h1>旅行社资料管理</h1>
							</div>	
							
						 </div >
					</div>
				</header>
				<section class="container">
					
					
					<!-- 修改旅行社信息 -->
					<div class="information" >
					<form action="backsaveupdateorg" class="info-form" name="orgForm" method="post" onSubmit="return orgSubmit(this);" >
						<h4 class="info-h4">
							<i class="fa fa-caret-right" aria-hidden="true" ></i>修改旅行社信息
						</h4>
					<div class="input-container">
					<table class="info-table">
						<tr>
					<th><label for="OrgName">公司姓名</label><span class="mustWrite">*</span></th>
					<td colspan="2">
					<input type="hidden"  name="OrgID" value="${dbSysOrg.getOrgID()}" />
					
					<input type="text" id="OrgName" name="OrgName" value="${dbSysOrg.getOrgName()}" required="required"/>
					</td>
					<th><label for="UpOrgName">上级所属公司名称</label><span class="mustWrite">*</span></th>
					<td colspan="2"> 
					<select class="input-select-vlign"  id="UpOrgName"  name="UpOrgID" required="required">
								
								<c:forEach var="lstSysOrg" items="${lstSysOrg}">
								<option value="${lstSysOrg.getOrgID()}"  <c:if test="${dbSysOrg.getUpOrgID()==lstSysOrg.getOrgID()}"> selected="selected"</c:if>>${lstSysOrg.getOrgName()}</option>
							</c:forEach>
					</select>
					 	 
					</td>
				</tr>
				<tr >
					<th><label for="OrgContact">联系人</label><span class="mustWrite">*</span></th>
					<td  colspan="2">
					<input type="text" id="OrgContact" name="Contact" value="${dbSysOrg.getContact()}" required="required"/>
							</td>
					<th><label for="OrgMobile">手机号码</label><span class="mustWrite">*</span></th>
					<td colspan="2">
					<input type="text" id="OrgMobile" name="Mobile" value="${dbSysOrg.getMobile()}" required="required"/>
					</td>
					
					
				</tr>
				
				
				<tr>
					<th><label for="OrgFax">传真</label></th>
					<td colspan="2">
					<input type="text" id="OrgFax" name="Fax" value="${dbSysOrg.getFax()}" />
					</td>
					
					<th><label for="OrgTel">固话</label></th>
					<td colspan="2">
					<input type="text" id="OrgTel" name="Tel" value="${dbSysOrg.getTel()}" />
						
					</td>
				</tr>
				
				<tr>
					<th><label for="OrgZoneID">区域</label><span class="mustWrite">*</span></th>
					<td colspan="5">				
						<select class="input-select-vlign  select-height" id="orgZoneID" name="Province" required="required" emptyOption="false"  onchange="changeSelect(this,'getLevel4','level3','City')" >
					
					<c:forEach var="lstZoneProvince" items="${lstZoneProvince}">
						<option value="${lstZoneProvince.getZoneID()}" <c:if test="${strProvinceID==lstZoneProvince.getZoneID()}"> selected="selected"</c:if>>${lstZoneProvince.getZoneName()}</option>
						</c:forEach>
						</select>
						<select class='input-select-vlign  select-height City' name='City' id="orgCityID" required="required" emptyOption='false' onchange="changeSelect(this,'getLevel8','level4','ZoneID')">
						<c:forEach var="lstZoneCity" items="${lstZoneCity}">
						<option value="${lstZoneCity.getZoneID()}" <c:if test="${strCityID==lstZoneCity.getZoneID()}"> selected="selected"</c:if>>${lstZoneCity.getZoneName()}</option>
						</c:forEach>
						</select> 	
						<select class='input-select-vlign  select-height ZoneID' name='ZoneID' id="zoneID" required="required" emptyOption='false' >
							<c:forEach var="lstConstZoneDistrict" items="${lstConstZoneDistrict}">
						<option value="${lstConstZoneDistrict.getZoneID()}" <c:if test="${dbSysOrg.getZoneID()==lstConstZoneDistrict.getZoneID()}"> selected="selected"</c:if>>${lstConstZoneDistrict.getZoneName()}</option>
						</c:forEach>
						</select>
					
					</td>
							
					
				</tr>
				<tr>
							<th><label for="OrgAddress">地址</label><span class="mustWrite">*</span></th>
							<td colspan="5">
						<input type="text" id="OrgAddress" name="Address" value="${dbSysOrg.getAddress()}" required="required"/>	
							
							</td>
					
				</tr>
				<tr>
					<th><label for="OrgMemo">备注</label></th>
					<td colspan="5">
						<textarea id="OrgMemo" name="Memo">${dbSysOrg.getMemo()}</textarea>	
					</td>
					
				</tr>
			
			</table>
			<center>
				<input type="submit" class="btn" value="保存" />
				<input type="button" class="btn" value="返回" onclick="rehidder()"/>
			</center> 
			</div>
			</form>
			</div>
			</section>
			</article>
			</main>
			<!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
		<!-- Main End -->
		<!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
</div>
		<jsp:include page="/WEB-INF/jsp/Footer.jsp"></jsp:include>
	</div>
	<!-- /st-container -->
	<!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
		<!-- Script Embed Start -->
		<!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
	<!-- Main Slider -->
		<jsp:include page="/WEB-INF/jsp/include2.jsp"></jsp:include>

</body>

</html>